<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style type="text/css">

    /*解决网页中一直点击出现蓝色背景问题*/
    body {
        -webkit-user-select: none; /*webkit浏览器*/
        -moz-user-select: none; /*火狐*/
        -ms-user-select: none; /*IE10*/
        -khtml-user-select: none; /*早期浏览器*/
        user-select: none;
    }

    body {
        padding: 0 !important;
        margin: 0 !important;
    }

    body > div.wrapper {
        padding: 16px !important;
        margin: 0 !important;
    }

    body form {
        padding: 0 !important;
        margin: 0 !important;
    }

    .form-group {
        margin: 0 0 8px 0 !important;
    }

    textarea {
        resize: none; /*禁止拉伸*/
    }
</style>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-order-edit">
        <!--<label class="col-sm-3 control-label">订单编号：[[*{orderNumber}]]</label>-->
        <input id="orderId" name="orderId" th:value="*{orderId}" type="hidden">
        <input id="memberId" name="memberId" th:value="*{memberId}" type="hidden">
        <div class="form-group">
            <div th:with="type=${@dict.getType('notice_msg')},
                                    label = ${(type != null && type.size() >0)?type[0].getDictLabel():''},
                                    label = ${#strings.replace(label,'${money}',money)},
                                    label = ${#strings.replace(label,'${payMoney}',payMoney)},
                                    label = ${#strings.replace(label,'${overdueMoney}',overdueMoney)},
                                    label = ${#strings.replace(label,'${overdueFee}',overdueFee)}">
                <textarea id="msg" name="msg" th:text="*{label}" rows="5" class="form-control" placeholder></textarea>
            </div>
        </div>
        <!--<div class="form-group">-->
            <!--<div>-->
                <!--<input type="checkbox" id="sms" name="sms" style="vertical-align:middle;margin:0 4px;">-->
                <!--<span onclick="javascript:$('#sms').trigger('click');" style="cursor: pointer">短信通知</span>-->
            <!--</div>-->
        <!--</div>-->
        <div class="form-group" th:if="${money!='0'}">
            <div class="form-control-static col-sm-offset-9">
                <button type="submit" class="btn btn-primary">提交</button>
                <button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "beautyflower/order"
    $("#form-order-edit").validate({
        rules: {
            xxxx: {
                required: true,
            }
        },
        submitHandler: function (form) {
            $.operate.save(prefix + "/sendNotice", $('#form-order-edit').serialize());
        }
    });
</script>
</body>
</html>
